package com.yanqu.road.entity.log.cross;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

/**
 * @Description 队伍成员变更日志 (表放在跨服)
 * @Author cwq
 * @Data 2021/7/1 11:21
 */
@FieldTypeAnnotation(tableName = "t_l_ck_dunhuangshiku_team_member", desc = "敦煌-队伍成员变更日志", autoSave = true, uploadCk = true, isCross = true)
public class LogDunHuangShiKuTeamMember extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动id", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "玩家id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "队伍id")
    private int teamId;

    @FieldTypeAnnotation(desc = "身份 （0成员 1队长）")
    private int identity;

    @FieldTypeAnnotation(desc = "类型 0入队 1离队")
    private int type;

    @FieldTypeAnnotation(desc = "离队类型 （1被踢 2解散 3主动离队）")
    private int leaveType;

    public LogDunHuangShiKuTeamMember(int activityId, long userId, int teamId, int identity, int type, int leaveType) {
        this.activityId = activityId;
        this.userId = userId;
        this.teamId = teamId;
        this.identity = identity;
        this.type = type;
        this.leaveType = leaveType;
    }

    public long getUserId() {
        return userId;
    }
}
